import request from '@/utils/request'

// 查询用户提交的货单列表
export function listManifest(query) {
    return request({
        url: '/hy/manifest/list',
        method: 'get',
        params: query
    })
}

// 查询用户提交的货单详细
export function getManifest(id) {
    return request({
        url: '/hy/manifest/' + id,
        method: 'get'
    })
}

// 修改用户提交的货单
export function updateManifest(data) {
    return request({
        url: '/hy/manifest',
        method: 'put',
        data: data
    })
}

// 删除用户提交的货单
export function delManifest(id) {
    return request({
        url: '/hy/manifest/' + id,
        method: 'delete'
    })
}
